@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #555555;
    --text-tertiary: #666666;
    --border-color: #f0f0f0;
    --border-active: #ccc;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover-color: rgba(0, 0, 0, 0.12);
    --cta-bg: #000000;
    --cta-text: #ffffff;
    --cta-btn-bg: #ffffff;
    --cta-btn-text: #000000;
    --header-bg: #ffffff;
    --tag-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --modal-overlay: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #282828;
    --text-primary: #e8eaed;
    --text-secondary: #bdc1c6;
    --text-tertiary: #9aa0a6;
    --border-color: #3c4043;
    --border-active: #5f6368;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --shadow-hover-color: rgba(0, 0, 0, 0.3);
    --cta-bg: #000000;
    --cta-text: #ffffff;
    --cta-btn-bg: #ffffff;
    --cta-btn-text: #000000;
    --header-bg: #1e1e1e;
    --tag-gradient: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    --modal-overlay: rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== SCROLL ANIMATION STYLES ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered animation delays for grid items */
.project-card.fade-in-section:nth-child(1), .service-item.fade-in-section:nth-child(1), .blog-item.fade-in-section:nth-child(1), .cert-card.fade-in-section:nth-child(1) { transition-delay: 0.1s; }
.project-card.fade-in-section:nth-child(2), .service-item.fade-in-section:nth-child(2), .blog-item.fade-in-section:nth-child(2), .cert-card.fade-in-section:nth-child(2) { transition-delay: 0.2s; }
.project-card.fade-in-section:nth-child(3), .service-item.fade-in-section:nth-child(3), .blog-item.fade-in-section:nth-child(3), .cert-card.fade-in-section:nth-child(3) { transition-delay: 0.3s; }
.project-card.fade-in-section:nth-child(4), .cert-card.fade-in-section:nth-child(4) { transition-delay: 0.4s; }
.cert-card.fade-in-section:nth-child(5) { transition-delay: 0.5s; }


/* ===== START: NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: var(--header-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    min-height: 80px;
    transition: all 0.3s ease;
}

.navbar .logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.navbar .logo:hover { transform: scale(1.05); }
.navbar .logo img { width: 100%; height: 100%; object-fit: cover; }
.navbar .nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.navbar .nav-links a { text-decoration: none; color: var(--text-primary); font-weight: 500; font-size: 15px; transition: color 0.3s ease; padding: 5px 0; }
.navbar .nav-links a:hover { color: var(--text-tertiary); }
.navbar .nav-actions { display: flex; align-items: center; gap: 20px; }

.navbar .contact-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}
.navbar .contact-btn:hover { background: var(--text-secondary); }

/* Theme Switcher */
.theme-switcher { display: flex; align-items: center; }
#dark-mode-toggle { display: none; }
.slider-label { cursor: pointer; width: 50px; height: 26px; background-color: #ccc; display: block; border-radius: 100px; position: relative; }
.slider-label:after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background-color: white; border-radius: 90px; transition: 0.3s; }
#dark-mode-toggle:checked + .slider-label { background-color: #4CAF50; }
#dark-mode-toggle:checked + .slider-label:after { left: calc(100% - 3px); transform: translateX(-100%); }
.slider-label .sun-icon, .slider-label .moon-icon { position: absolute; font-size: 14px; line-height: 1; user-select: none;}
.slider-label .sun-icon { left: 5px; top: 5px; color: #f39c12; opacity: 1; }
.slider-label .moon-icon { right: 5px; top: 5px; color: #f1c40f; opacity: 0; }
#dark-mode-toggle:checked ~ .slider-label .sun-icon { opacity: 0; }
#dark-mode-toggle:checked ~ .slider-label .moon-icon { opacity: 1; }

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 4px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
}
.lang-btn.active {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.menu-toggle { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
.menu-toggle .bar { width: 100%; height: 3px; background-color: var(--text-primary); border-radius: 10px; transition: all 0.3s ease; }
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(7px, 6px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

@media (max-width: 1024px) { .navbar .nav-actions { gap: 15px; } }
@media (max-width: 992px) {
    .navbar .nav-links { position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px); background-color: var(--bg-primary); flex-direction: column; align-items: center; justify-content: center; gap: 40px; transform: translateX(-100%); transition: transform 0.3s ease-in-out; }
    .navbar .nav-links.active { transform: translateX(0); }
    .navbar .nav-links a { font-size: 20px; }
    .navbar .nav-actions { display: none; }
    .menu-toggle { display: flex; }
}

@media (max-width: 480px) { .navbar { padding: 0 20px; min-height: 70px; } .navbar .nav-links { top: 70px; height: calc(100vh - 70px); } }
/* ===== END: NAVBAR ===== */

/* ===== HERO SECTION ===== */
.main-container { height: 100vh; padding-top: 80px; box-sizing: border-box; display: flex; flex-direction: column; }
.content-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px 40px; display: grid; grid-template-columns: 1fr 2fr 1fr; grid-template-rows: auto auto; gap: 20px; width: 100%; flex-shrink: 0; }
.greeting-section { grid-column: 1; grid-row: 1; align-self: end; }
.greeting { font-size: 32px; font-weight: 400; color: var(--text-primary); min-height: 45px; }
.profession-section { grid-column: 2; grid-row: 1; text-align: center; align-self: end; }
.profession-title, .profession-subtitle { font-size: 28px; font-weight: 600; color: var(--text-primary); line-height: 1.3; min-height: 36px; }
.profession-subtitle { margin-bottom: 20px; }
.profession-description { font-size: 16px; color: var(--text-tertiary); max-width: 350px; margin: 0 auto; min-height: 48px; }
.location-section { grid-column: 3; grid-row: 1; align-self: end; }
.location-title { font-size: 28px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; min-height: 36px; }
.location-description { font-size: 16px; color: var(--text-tertiary); min-height: 24px; display: flex; align-items: center; gap: 8px; }
.india-flag { font-size: 18px; opacity: 0; transform: translateY(10px); transition: all 0.5s ease 0.3s; }
.location-description.typing-complete .india-flag { opacity: 1; transform: translateY(0); }
.main-title { grid-column: 1 / -1; grid-row: 2; text-align: center; margin: 20px 0; }
.main-title h1 { font-size: clamp(4rem, 8vw, 7rem); font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; line-height: 0.9; }
.hero-image { width: 100%; flex-grow: 1; min-height: 200px; background: var(--bg-secondary); overflow: hidden; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.typing-cursor::after { content: '|'; font-weight: 100; animation: blink 1s infinite; color: var(--text-primary); }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 1024px) { .content-wrapper { grid-template-columns: 1fr; grid-template-rows: auto; text-align: center; gap: 15px; padding: 20px; flex-grow: 0; } .greeting-section, .profession-section, .location-section { align-self: center; margin-top: 0; } .main-title { margin: 15px 0; } .location-description { justify-content: center; } }
@media (max-width: 768px) { .greeting { font-size: 24px; } .profession-title, .profession-subtitle, .location-title { font-size: 22px; min-height: 28px; } .profession-description, .location-description { font-size: 15px; } .main-title h1 { font-size: clamp(3rem, 10vw, 5rem); } }
@media (max-width: 480px) { .greeting { font-size: 20px; } .profession-title, .profession-subtitle, .location-title { font-size: 18px; min-height: 24px; } }

/* ===== GENERIC SECTION STYLES ===== */
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: var(--text-primary); margin-bottom: 20px; letter-spacing: -0.02em; }
.section-header p { font-size: 18px; color: var(--text-tertiary); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ===== CLICKABLE CARDS & MODAL TRIGGER ===== */
.modal-trigger { cursor: pointer; }
.btn-card-link { display: inline-block; margin-top: 20px; padding: 10px 20px; background-color: var(--text-primary); color: var(--bg-primary); text-decoration: none; border-radius: 25px; font-size: 14px; font-weight: 500; transition: background-color 0.3s ease, transform 0.3s ease; }
.btn-card-link:hover { background-color: var(--text-secondary); transform: translateY(-2px); }

/* ===== WORK & PROJECTS CARD STYLES ===== */
.work-experience-section, .projects-section, .research-section, .certifications-section, .reviews-section, .blog-section { padding: 100px 0; background: var(--bg-secondary); }
.projects-section, .research-section, .skills-section, .education-section, .memberships-section, .faq-section, .contact-section { background: var(--bg-primary); }
.work-experience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: start; }
.projects-grid, .research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; align-items: start; }
.research-grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.project-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px var(--shadow-color); transition: all 0.3s ease; display: flex; flex-direction: column; border: 1px solid var(--border-color);}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px var(--shadow-hover-color); }
.project-image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-secondary); position: relative; }
.status-tag { position: absolute; top: 15px; right: 15px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #fff; z-index: 2; }
.status-tag.published { background-color: #28a745; }
.status-tag.ongoing { background-color: #17a2b8; }
.status-tag.submitted { background-color: #ffc107; color: #333 }
.project-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%); }
[data-theme="dark"] .project-placeholder { background: linear-gradient(135deg, #333 0%, #222 100%);}
.project-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.project-card:hover .project-placeholder img { transform: scale(1.05); }
.project-icon { font-size: 48px; opacity: 0.6; }
.project-content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.project-content h3 { font-size: 21px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.project-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; flex-grow: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: -webkit-line-clamp 0.3s ease; }
.project-content p.expanded { -webkit-line-clamp: 50; } /* Allow many lines on expand */
.project-content .co-authors { font-size: 13px; color: #888; margin-top: 15px; font-style: italic; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.project-tags .tag { background: var(--tag-gradient); color: white; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; transition: transform 0.2s ease; }
.project-tags .tag:hover { transform: translateY(-2px); }

/* ===== EDUCATION SECTION ===== */
.education-section { padding: 100px 0; }
.education-item h3 { font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.education-item h4 { font-size: 18px; font-weight: 400; color: var(--text-secondary); margin-bottom: 20px; }
.education-meta { display: flex; gap: 15px; flex-wrap: wrap;}
.education-meta span { background-color: var(--bg-secondary); color: var(--text-secondary); padding: 8px 15px; border-radius: 8px; font-size: 14px; font-weight: 500; }

/* ===== SERVICES SECTION ===== */
.services-section { padding: 100px 0; background: var(--bg-secondary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 60px; }
.service-item { display: flex; flex-direction: column; background: var(--bg-card); border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-color); }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 15px 50px var(--shadow-hover-color); }
.service-content { display: flex; flex-direction: column; justify-content: center; flex-grow: 1;}
.service-icon { font-size: 32px; margin-bottom: 20px; }
.service-content h3 { font-size: 22px; font-weight: 600; margin-bottom: 15px; }
.service-content p { font-size: 16px; color: var(--text-tertiary); line-height: 1.6; }
.service-image { display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-radius: 15px; width: 100%; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 20px;}
.service-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== SKILLS SECTION ===== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; margin-top: 60px; }
.skill-category h3 { font-size: 22px; font-weight: 600; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid var(--border-color); position: relative; }
.skill-category h3::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--text-primary); }
.skills-list { display: flex; flex-wrap: wrap; gap: 15px; }
.skill-item { display: flex; align-items: center; gap: 12px; background: var(--bg-secondary); padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.skill-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 8px 25px var(--shadow-color); }
.skill-item .skill-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.skill-item .skill-icon img { width: 100%; height: 100%; object-fit: contain; }
[data-theme="dark"] .skill-item .skill-icon img { filter: invert(0.8); }
.skill-item span { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.additional-skills { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--border-color); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; }
.skills-list-prose { display: flex; flex-wrap: wrap; gap: 12px; }
.skills-list-prose span { background-color: var(--bg-secondary); color: var(--text-secondary); padding: 8px 15px; border-radius: 8px; font-size: 14px; font-weight: 500; }

/* ===== CERTIFICATIONS & MEMBERSHIPS ===== */
.certifications-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.cert-card { background: var(--bg-card); padding: 25px; border-radius: 15px; box-shadow: 0 8px 32px var(--shadow-color); text-align: center; border: 1px solid var(--border-color); }
.cert-card h4 { font-size: 18px; margin-bottom: 10px; }
.cert-card p { font-size: 14px; color: var(--text-tertiary); margin-bottom: 20px; }
.memberships-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.membership-item { background: var(--bg-secondary); padding: 30px; border-radius: 15px; text-align: center; border: 1px solid var(--border-color); }
.membership-item h4 { font-size: 20px; margin-bottom: 8px; }
.membership-item p { font-size: 15px; color: var(--text-tertiary); line-height: 1.5; }

/* ===== REVIEWS SECTION ===== */
.reviews-grid { display: flex; flex-direction: column; gap: 50px; margin-top: 60px; }
.review-item { display: grid; grid-template-columns: 1fr 300px; gap: 50px; background: var(--bg-card); border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px var(--shadow-color); transition: transform 0.3s ease; border: 1px solid var(--border-color); }
.review-item:nth-child(even) { grid-template-columns: 300px 1fr; }
.review-item:nth-child(even) .review-image { order: 1; }
.review-item:nth-child(even) .review-content { order: 2; }
.review-item:hover { transform: translateY(-5px); }
.review-content h4 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.review-content p { font-size: 16px; color: var(--text-tertiary); line-height: 1.7; margin-bottom: 15px; }
.reviewer { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.reviewer-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--text-primary); color: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.reviewer-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.reviewer-title { font-size: 14px; color: var(--text-tertiary); }
.review-image { background: var(--bg-secondary); border-radius: 15px; height: 200px; overflow: hidden; }
.review-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== FAQ SECTION ===== */
.faq-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 60px; }
.faq-item { background: var(--bg-card); border-radius: 15px; overflow: hidden; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 25px; cursor: pointer; }
.faq-question h4 { font-size: 18px; font-weight: 600; margin: 0; }
.faq-toggle { font-size: 24px; font-weight: 300; color: var(--text-tertiary); transition: transform 0.3s ease; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active { border-color: var(--border-active); }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 25px 25px; font-size: 16px; color: var(--text-tertiary); line-height: 1.6; margin: 0; border-top: 1px solid var(--border-color); padding-top: 25px; }

/* ===== BLOG SECTION & MODAL ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 60px; }
.blog-item { background: var(--bg-card); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-color);}
.blog-item:hover { transform: translateY(-10px); box-shadow: 0 20px 60px var(--shadow-hover-color); }
.blog-image { height: 200px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-item:hover .blog-image img { transform: scale(1.05); }
.blog-content { padding: 30px; }
.blog-content h4 { font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.blog-content p { font-size: 15px; color: var(--text-tertiary); line-height: 1.6; margin-bottom: 20px; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; }
.blog-date, .blog-category { font-size: 13px; color: #999; font-weight: 500; }
.blog-category { background: var(--bg-secondary); padding: 4px 12px; border-radius: 15px; color: var(--text-secondary);}
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--modal-overlay); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-card); border-radius: 15px; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 15px; right: 20px; background: rgba(0,0,0,0.3); color: #fff; border: none; border-radius: 50%; width: 35px; height: 35px; font-size: 24px; line-height: 35px; text-align: center; cursor: pointer; z-index: 10; transition: background 0.2s ease; }
.modal-close:hover { background: rgba(0,0,0,0.6); }
.modal-header { width: 100%; height: 300px; background-color: var(--bg-secondary); }
.modal-header.no-image { display: none; }
.modal-header img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px 15px 0 0; }
.modal-body { padding: 30px 40px; }
.modal-body h2 { font-size: 28px; margin-bottom: 10px; line-height: 1.3; }
.modal-body .meta { color: #888; margin-bottom: 25px; font-size: 15px; }
.modal-body .content p, .modal-body .content { font-size: 16px; line-height: 1.7; color: var(--text-secondary); }
.modal-body .content p { margin-bottom: 20px; }
.modal-body .content ul { list-style-position: inside; padding-left: 10px; }
.modal-body .content li { margin-bottom: 10px; }
.modal-body .content blockquote { border-left: 3px solid var(--border-active); padding-left: 20px; margin: 20px 0; font-style: italic; color: var(--text-tertiary); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 700px; margin: 60px auto 0; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.2);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover { background: var(--text-secondary); }
.contact-socials { text-align: center; margin-top: 50px; display: flex; justify-content: center; gap: 25px; }
.contact-socials a { color: var(--text-secondary); font-size: 24px; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.contact-socials a:hover { color: var(--text-primary); transform: translateY(-3px); }


/* ===== CTA & FOOTER ===== */
.cta-section { padding: 120px 0; background: var(--cta-bg); text-align: center; }
.cta-content h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: var(--cta-text); margin-bottom: 25px; }
.cta-content p { font-size: 18px; color: #ccc; max-width: 600px; margin: 0 auto 40px; }
.cta-btn { background: var(--cta-btn-bg); color: var(--cta-btn-text); padding: 18px 40px; border: none; border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.cta-btn:hover { background: #f0f0f0; transform: translateY(-2px); }
.footer { background: var(--bg-primary); padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.footer-left p { font-size: 16px; font-weight: 500; }
.footer-center { text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 30px; }
.footer-links a { text-decoration: none; color: var(--text-tertiary); font-size: 15px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text-primary); }
.footer-right { text-align: right; }
.social-links { display: flex; justify-content: flex-end; gap: 20px; }
.social-links a { font-size: 18px; text-decoration: none; transition: transform 0.3s ease; color: var(--text-tertiary); }
.social-links a:hover { transform: scale(1.2); color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border-color); }
.footer-bottom p { font-size: 14px; color: #999; }
.footer-bottom a { color: var(--text-primary); text-decoration: none; }

/* ===== GENERAL RESPONSIVE STYLES ===== */
@media (max-width: 1024px) { .container { padding: 0 20px; } .review-item, .review-item:nth-child(even), .education-content { grid-template-columns: 1fr; gap: 30px; } .review-item:nth-child(even) .review-image, .review-item:nth-child(even) .review-content { order: unset; } .service-image, .review-image { height: 200px; } .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; } .footer-right { text-align: center; } .social-links { justify-content: center; } }
@media (max-width: 992px) { .work-experience-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .work-experience-section, .projects-section, .services-section, .reviews-section, .faq-section, .blog-section, .skills-section, .education-section, .certifications-section, .research-section, .memberships-section, .contact-section { padding: 60px 0; } .section-header { margin-bottom: 50px; } .cta-section { padding: 80px 0; } .work-experience-grid, .projects-grid, .blog-grid, .skills-grid, .additional-skills, .certifications-grid, .research-grid { grid-template-columns: 1fr; gap: 30px; } .memberships-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 15px; text-align: center; } .modal-body { padding: 20px; } .modal-body h2 { font-size: 22px; } }
@media (max-width: 480px) { .section-header h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); } .section-header p, .cta-content p { font-size: 16px; } .project-content { padding: 20px; } .project-content h3 { font-size: 18px; } .education-details h3 { font-size: 22px; } .education-details h4 { font-size: 18px; } .faq-question, .faq-answer p { padding: 20px; } .footer-links { flex-wrap: wrap; gap: 15px; } }